.lazy__box {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}

.lazy__resource {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy__img {
  display: block;
}

.lazy__img[lazy="loading"] {
  width: 48px;
  padding: 5em 0;
}

.lazy__img[lazy="loaded"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazy__img[lazy="error"] {
  width: 48px;
  height: auto;
  padding: 5em 0;
}
